package com.by.bean;

import com.by.common.group.ISave;
import com.by.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author wang
 * @version 版本号 ${}
 * @className Employee
 * @日期 2024/9/11 10:48
 * @since jdk1.8
 */
@Data
@ApiModel ("员工")
public class Employee {
    @NotNull (message = "员工id不能为空", groups = {IUpdate.class})
    @ApiModelProperty ("员工id,修改时不能为空")
    int id;
    
    @Valid
    User user;
    
    @ApiModelProperty (value = "用户id", hidden = true)
    int userId;
    
    @NotEmpty (message = "员工姓名不能为空", groups = {ISave.class, IUpdate.class})
    @ApiModelProperty (value = "员工姓名", required = true)
    String name;
    
    @ApiModelProperty (value = "手机号")
    String mobile;
    
    @ApiModelProperty (value = "部门id")
    int deptId;
    
    @ApiModelProperty (value = "职位")
    String job;
    
    @ApiModelProperty (value = "工资")
    double salary;
    
    @ApiModelProperty (value = "员工生日")
    String birthday;
    
    @ApiModelProperty (value = "入职日期")
    String entryDate;
    
    @ApiModelProperty(value = "角色id")
    int roleId;
    
    @ApiModelProperty(value = "类型")
    int type;
    
    @ApiModelProperty(value = "产品参数")
    int pp;
    
    @ApiModelProperty(value = "年度业绩")
    double performance;
    
    @ApiModelProperty(value = "已完成业绩")
    double hasFininsh;
    
    @ApiModelProperty(value = "是否删除")
    int isdel;
    
}
